
import 'package:get/get.dart';

import 'state.dart';

class AllOrdersLogic extends GetxController {
  final state = AllOrdersState();

  @override
  void onInit() {
    super.onInit();

    state.chooseIndex = 0;
    state.orderList = [1, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5,];
  }

  void onTabChange(int index) {
    state.chooseIndex = index;
    update();
  }

}